<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

  <head>
	<title> Tracking in progress - Aurora </title>
  </head>
  
  <body>
  	<h2> Tracking in Progress </h2>
  	 	
  	<form name="send" action="/main.jsp" method="post">
  		<% String vak = request.getParameter("vak");%> 
  		<p> U studeert nu voor: <%= vak %> </p> 
  		Tijd gestudeerd: <input type="text" size="12" name="totaleStudietijd">
    	<input type="submit" value="Stop" />
  	</form>
  	
	<script type="text/javascript">
		var seconds = 0
		var minutes = 0
		var hours = 0
		
		function show()
		{
			seconds= seconds + 1
			if(seconds > 59) {
			minutes = minutes +1
			seconds=0
			}
			if(minutes >59) {
			hours+1
			minutes=0 
			}			
			setTimeout("show()",1000)
			document.send.totaleStudietijd.value=""+hours+":"+minutes+":"+seconds
		}	
		show()
	</script>  	 
  </body>
  </html>